﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace FrameworkDesign.Example
{
    public class GameStartPanel : MonoBehaviour
    {

        // Start is called before the first frame update
        void Start()
        {
            transform.Find("btnStart").GetComponent<Button>()
                .onClick.AddListener(()=>
                {
                    gameObject.SetActive(false);

                    GameStartEvent.Trigger();
                }
                );
        }

        // Update is called once per frame
        void Update()
        {

        }
    }

}
